package com.example.travel.activity;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.annotation.Nullable;
import com.example.travel.R;


public class WelcomeActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        //两秒进入主页面
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                //执行主线程
                //启动主页面

                startActivity(new Intent(WelcomeActivity.this, LoginActivity.class));
                //关闭当前页面
                finish();
            }
        },2000);
    }
}
